<!DOCTYPE HTML>
<html th:with="title='编辑营销产品'">
<head th:include="fragments/header :: header">
</head>
<body id="app">
	<div class="page-container">
		<form class="form form-horizontal">

			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">设备名称：</label>
				<div class="formControls col-xs-4 col-sm-4" id="deviceName"></div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">联系邮箱：</label>
				<div class="formControls col-xs-4 col-sm-4" id="email"></div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">联系电话：</label>
				<div class="formControls col-xs-4 col-sm-4" id="mobilePhone"></div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">反馈时间：</label>
				<div class="formControls col-xs-2 col-sm-2" id="createdDate"></div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">反馈内容：</label>
				<div class="formControls col-xs-2 col-sm-2" id="content"></div>
			</div>
		</form>
	</div>

	<div th:include="fragments/widget :: multuserTreePanel"></div>
	<script th:include="fragments/widget :: multuserTreeJs" type="text/javascript">
		
	</script>
	<script type="text/javascript">
		$(function() {
			get();
		});
		function get() {
			var id = getIdFromUrl();
			$.ajax({
				type : "GET",
				url : '/manager/feedBack/get/' + id,
				beforeSend : function() {
				},
				complete : function() {
				},
				error : function(request) {
					alert("Connection error");
				},
				success : function(result) {
					if (result.status == 0) {
						var data = result.data;
						$("#content").append(data.content);
						$("#createdDate").append(data.createdDate);
						$("#mobilePhone").append(data.mobilePhone);
						$("#email").append(data.email);
						$("#deviceName").append(data.device.deviceName);
					}
				}
			});
		}
	</script>
</body>
</html>